<template>
  <div>
    <van-nav-bar title="腮红" left-arrow fixed @click-left="onClickLeft" />
    <div class="top1">
      <ul>
        <li @click="fun" :class="{ fontColor: current == '1' }">综合</li>
        <li @click="funSale" :class="{ fontColor: current == '2' }">销量</li>
        <li @click="funPrice" :class="{ fontColor: current == '3' }">价格<van-icon name="arrow-up" /></li>
        <li @click="funOption" :class="{ fontColor: current == '4' }">筛选<van-icon name="filter-o" /></li>
      </ul>
      <div class="xian"></div>
      <div class="top3">
        <div style="width: 35px">有货</div>
        <div style="width: 80px">离岛自提商品</div>
        <div style="width: 60px">邮寄商品</div>
        <div style="width: 60px">返岛自提</div>
      </div>
    </div>

    <div class="foote">
      <Contentvue @click="fun"></Contentvue>
    </div>
  </div>
</template>

<script>
import Contentvue from "../home/content.vue";
export default {
  data() {
    return {
      active: false,
      current: 1
    };
  },
  methods: {
    onClickLeft() {
      this.$router.push("/caizhuang").catch(err => { });
    },
    fun() {
      this.$router.push("/detail");
      this.current = 1
    },
    funSale() {
      this.current = 2
    },
    funPrice() {
      this.current = 3
    },
    funOption() {
      this.current = 4
    }
  },
  components: {
    Contentvue,
  },
};
</script>

<style scoped>
ul {
  margin-top: 46px;
  width: 100%;
  height: 40px;
  background-color: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 14px;
  color: gray;
}

.fontColor {
  color: orange;
}

.top3 {
  width: 100%;
  height: 50px;
  background-color: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 12px;

}

.top3 div {
  height: 18px;
  border: 1px solid rgb(201, 197, 197);
  border-radius: 20px;
  text-align: center;
}
</style>